<template>
<el-container>
    <div class="">
        <MinisterMenu></MinisterMenu>
    </div>
    <el-main style="padding:0px">
        <el-row>
            <el-col :span="3">
                <h2>审核任务</h2>
            </el-col>
        </el-row>
        <el-row>
            <el-clo>
                <el-table :data="taskList" style="width: 1100px">
                    <el-table-column type="expand">
                        <template #default="props">
                            <p>任务详情: {{ props.row.details }}</p>
                            <el-link type="primary" href="javascript:void(0)">文件列表</el-link>
                        </template>
                    </el-table-column>
                    <el-table-column label="任务名字" prop="name" />
                    <el-table-column label="任务详情" prop="details" />
                    <el-table-column label="发布时间" prop="subTime" />
                    <el-table-column label="开始时间" prop="startTime" />
                    <el-table-column label="预计结束时间" prop="estTime" />
                    <el-table-column label="处理人" prop="companyUser.userinfo.name" />

                    <el-table-column align="right">
                        <template #default="scope">
                            <el-button size="small" @click="handleEdit(scope.$index, scope.row)">通过</el-button>
                            <el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">拒绝</el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </el-clo>
            <el-col></el-col>
        </el-row>

    </el-main>

</el-container>
</template>

<script>
import MinisterMenu from '@/components/menu/MinisterMenu.vue'
import instanceToken from "@/utlis/tokenIdentify";
export default {
    name: 'CheckTaskView',
    components: {
        MinisterMenu,
    },
    data() {
        return {
            taskList: [],
        };
    },
    methods: {
        initData() {
            instanceToken.get("/task/minister/taskList").then(res => {
                console.log(res.data.data);
                this.taskList = res.data.data;
            })
        },
    },
    created() {
        this.initData();
    },
    computed: {},
    watch: {},
}
</script>

<style  scoped>

</style>
